package com.sky.module.system.post.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sky.module.suppot.datatrace.annotation.History;
import com.sky.module.suppot.datatrace.annotation.HistoryRecord;
import lombok.Data;
import lombok.EqualsAndHashCode;

@History(table = "sys_post")

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_post")
public class Post {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @HistoryRecord(field = "岗位编码")
    private String postCode;
    @HistoryRecord(field = "岗位名称")
    private String name;
    @HistoryRecord(field = "岗位介绍")
    private String description;

    private Integer status;
}
